package com.mo.scopeprivilege.manager.impl;

import com.mo.scopeprivilege.annotation.TableInfo;
import com.mo.scopeprivilege.manager.UserManager;
import com.mo.scopeprivilege.mapper.user.UserMapper;
import com.mo.scopeprivilege.model.user.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@TableInfo(tableName = "t_user", alias = "user")
@Component
public class UserManagerImpl implements UserManager {


    @Autowired
    private UserMapper userMapper;

    @TableInfo(tableName = "t_user", alias = "user")
    @Override
    public List<User> selectAll(User user) {
        List<User> userList = null;
        userList = userMapper.selectAll(user);
        return userList;
    }
}
